package com.peek;

import com.peek.event.DealWithStartedEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationListener;

@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(Application.class);

		ApplicationListener[] listeners = new ApplicationListener[]{new DealWithStartedEvent()};
		application.addListeners(listeners);

		application.setWebEnvironment(true);

		application.run(args);
	}
}
